
<!DOCTYPE html>
<html>
<head>
    <title>数据列表操作</title>
</head>
<body>
    <h1>操作数据列表</h1>
    <h2>当前数据列表</h2>
    <ul>
        {% for item in data_list %}
        <li>{{ item.name }}</li>
        {% endfor %}
    </ul>
    <h2>添加元素</h2>
    <form action="/add" method="post">
        <input type="text" name="new_item" placeholder="输入要添加的元素">
        <button type="submit">添加</button>
    </form>
    <h2>删除元素</h2>
    <form action="/delete" method="post">
        <input type="text" name="item_to_delete" placeholder="输入要删除的元素">
        <button type="submit">删除</button>
    </form>
    <h2>修改元素</h2>
    <form action="/update" method="post">
        <input type="text" name="old_item" placeholder="输入旧元素">
        <input type="text" name="new_value" placeholder="输入新元素">
        <button type="submit">修改</button>
    </form>
</body>
</html>